import requests from '@/utils/requests'

//图形验证码的接口
export const getImgCode = () => requests.get('/captcha/image')

//获取验证码的接口
export const getCode = (captchaCode,captchaKey,mobile) => requests.post('/captcha/sendSmsCaptcha',{
	form:{
		captchaCode,
		captchaKey,
		mobile
	}
})

//登录的接口
export const codeLogin = (mobile,smsCode) => requests.post('/passport/login',{
	form:{
		isParty:false,
		mobile,
		partyData:{},
		smsCode
	}
})

